package com.neusoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neusoft.entity.Admin;
import com.neusoft.entity.AdminExample;
import com.neusoft.mapper.AdminMapper;
import com.neusoft.service.AdminService;


@Service
public class AdminServiceImpl implements AdminService{
	
	@Autowired
	AdminMapper adminMapper;
	
	@Override
	@Transactional
	public int removeById(Integer aId) {
		return adminMapper.deleteByPrimaryKey(aId);
	}

	@Override
	public int addSelective(Admin record) {
		return adminMapper.insertSelective(record);
	}

	@Override
	public List<Admin> loadListByExample(AdminExample example) {
		return adminMapper.selectByExample(example);
	}

	@Override
	public Admin loadById(Integer aId) {
		return adminMapper.selectByPrimaryKey(aId);
	}

	@Override
	public int updateByIdSelective(Admin record) {
		return adminMapper.updateByPrimaryKeySelective(record);
	}

	
	//////////////////////////////////////////////////////////////////////////////////////////
	@Override
	public Admin loadByExample(String account, String password) {
		// TODO Auto-generated method stub
		return null;
	}

	
}
